﻿using Mysoft.QuickCode.NPOI.SS.UserModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mysoft.QuickCode.Office.Excel.Data
{
    /// <summary>
    /// 自定义单元格样式的配置信息，用于过滤重复单元格，解决4000个单元格样式报错的问题。 
    /// </summary>

    internal class MyCellStyleSetting
    {
        /// <summary>
        /// 文本对齐方式
        /// </summary>
        /// <value>The h align.</value>
        public HorizontalAlignment Alignment { set; get; }
        /// <summary>
        /// 单元格是否锁定
        /// </summary>
        public bool IsLocked { set; get; }

        /// <summary>
        /// 数据格式化
        /// </summary>
        public string DataFormat { set; get; }
        
        /// <summary>
        /// 背景色：NPOI.HSSF.Util.HSSFColor的值
        /// </summary>
        public short BackgroundColor { set; get; }

        /// <summary>
        /// 字体颜色
        /// </summary>
        public short FontColor { set; get; }

        /// <summary>
        /// 对应的实际样式
        /// </summary>
        /// <value>The cell style.</value>
        public ICellStyle CellStyle { set; get; }
    }
}
